package com.clear.auth.domain.service;

import com.clear.auth.domain.entity.AuthPermissionBO;

import java.util.List;

/**
 * 权限领域服务
 */
public interface AuthPermissionDomainService {

    /**
     * 新增权限
     *
     * @param authPermissionBO
     * @return
     */
    Boolean add(AuthPermissionBO authPermissionBO);

    /**
     * 更新权限
     *
     * @param authPermissionBO
     * @return
     */
    Boolean update(AuthPermissionBO authPermissionBO);

    /**
     * 删除权限
     *
     * @param authPermissionBO
     * @return
     */
    Boolean delete(AuthPermissionBO authPermissionBO);

    /**
     * 查询用户权限
     *
     * @param username
     * @return
     */
    List<String> getPermission(String username);
}
